package com.bigmodel.taskmanager;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class Task implements Serializable {

    private String taskId;   //任务ID

    private String taskName;  //任务名称

    private String taskContent;  //任务内容

    private String taskTool; //任务使用的工具

    private String inputParam; //输入

    private List<String> dependentTaskIds; //依赖任务ID

    private String result; //任务执行结果

    private List<Task> nextTask;

    public Task(){
        nextTask = new ArrayList<>();
    }


    public void addNextTask(Task task){
        nextTask.add(task);
    }



}
